
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import time
import biz_mysql
import excel_info_sql
list1 = excel_info_sql.getConditions()
Platform = "微阅云"
def Inovel_test():
    driver = webdriver.Chrome(r'D:\Program Files\python3.63\chromedriver.exe')
    driver.get("http://new.emeixs.com/index.php/Admin/Main/index.html")
    driver.maximize_window()
    driver.implicitly_wait(10)
    time.sleep(1)

    # 定位账号
    driver.find_element_by_name('username').clear()
    driver.find_element_by_name('username').send_keys('{0}'.format("NanXunMedia"))

    # 定位密码
    time.sleep(0.5)
    driver.find_element_by_name('password').clear()
    driver.find_element_by_name('password').send_keys('{0}'.format('qwerasdf66'))

    # 点击登录
    time.sleep(6)
    driver.find_element_by_xpath('//a[@class="button button-block button-rounded button-royal button-large"]').click()

